package main

import "fmt"

func main() {
	demo1()
}

// 申明常量和变量
func demo() {
	const con = 299792      // km/s
	var distance = 56000000 //km
	fmt.Println(distance/con, "secondes")

	distance = 4011111000
	fmt.Println(distance/con, "secondes")
}

// 同时申明多个变量
func demo1() {
	var (
		con      = 299792   // km/s
		distance = 56000000 //km
	)

	fmt.Println(distance/con, "secondes")

	const a, b = "string", 1
	fmt.Println(a, b)
}
